{% extends 'base.html' %}
{% load static %}
{% load widget_tweaks %}


{% block html_title %}
    Review Information Modify
{% endblock %}


{% block html_body_nav_ol %}

    <li class="breadcrumb-item"><a href="{% url 'home' %}">Home</a></li>
    <li class="breadcrumb-item"><a href="{% url 'review:index' %}">Review</a></li>
    <li class="breadcrumb-item"><a href="{% url 'review:userinfo' %}">Account</a></li>
    <li class="breadcrumb-item active" aria-current="page">Edit</li>

{% endblock %}


{% block html_body %}

    <div class="row justify-content-center">
        <div class="col-9">
            <form method="post">{% csrf_token %}
                {{ form.non_field_errors }}
                {{ form.review_api_token.errors }}
                <label class="form-label" for="id_review_api_token">Review board API token: </label>

                {% render_field form.review_api_token class+="form-control" %}
                <input type="hidden" name="user" value="{{ form.user.value }}" id="id_user">
                <div class="row justify-content-end">
                    <div class="col-auto">
                        <input class="mt-3 btn btn-info" type="submit" value="Save">
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="row justify-content-center">
        <div class="col-9">
            <div class="text-center mt-5">
                <p class="fw-bold text-primary">Where to get API token: </p>
                <img class="img-fluid" src="{% static 'review/token.png' %}" alt="...">
            </div>

        </div>
    </div>
{% endblock %}